package com.yunkeji.system.domain.bo;

import com.yunkeji.common.core.domain.BaseEntity;
import com.yunkeji.common.core.validate.AddGroup;
import com.yunkeji.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 通话日志业务对象 ykj_call_log
 *
 * @author zhang
 * @date 2024-07-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CallLogBo extends BaseEntity {

    /** */
    @NotNull(
        message = "不能为空",
        groups = {EditGroup.class})
    private Long id;

    /** */
    @NotNull(
        message = "不能为空",
        groups = {AddGroup.class, EditGroup.class})
    private Integer type;

    /** */
    @NotNull(
        message = "不能为空",
        groups = {AddGroup.class, EditGroup.class})
    private Long callerId;

    /** */
    @NotNull(
        message = "不能为空",
        groups = {AddGroup.class, EditGroup.class})
    private Long answerId;

    /** 类型文本 */
    @NotBlank(
        message = "类型文本不能为空",
        groups = {AddGroup.class, EditGroup.class})
    private String remark;

    /** 该日志归属 */
    @NotNull(
        message = "该日志归属不能为空",
        groups = {AddGroup.class, EditGroup.class})
    private Long belongUid;

    private String ucid;
}
